Added addtask and loop scripts