Implemented session_pos() and fixed a few bugs