Implements preparable, sessionAware. Sessions now working properly