Updated code to set task completed