Changes sessions to variables
Removes settings
Changes sessions to instance variables