Remove redundant monitor loop code