Adding methods for adding task details,processing and failure