Fixing slowdown problem - working on sessions.