Removed the need for get_session

Removed the need for get_session. Details in issue #15