Added validation of tasks in bindings.