Preparation for session