Adding sessions handling and loging approuch