Closes #16. Fixed the shared preferences not being accessible.