Assign tasks.