Fixes #3 Secure preferences