Added sessions functionality