Added the basic functionality for NSUserDefaults storage