FIX #4. Session management implemented