This is a subset of the problem discussed here.