Just some helper functions from RestoreMeNot. Not really needed anymore.