Setup watch task. Needs to be tested.