Started implementing shared preferences in globals