Added sessions and profile support