Changed options and added new function to enumerate sessions.