Addition of cleaning of array for task