Do monitoring part in thread as well