Added task status functionality