1) Added session locking