Unfinished monitor optimization code

Added some outcommented code