I'm suspicious of this method, but don't have a better suggestion..