Added Task status check