Removed unused $session vars and converted process methods to protected