Added dynamic task adding to objective