Added a with statment for using sessions