Checks which tasks are completed.