-Changed the running query method
-Added sessions monitoring