Based on this: https://github.com/TauLabs/TauLabs/issues/98#issuecomment-24502551