Finally comleting the task but not in shortest time