Added support for MaxSessions