Implement session creating