Added main task
Batch updates added and main task controller