Clarified task_exists method
Re-introduce formatting changes