Changed monitoring to timer task from sleep