Preparing for session