Checks for completed tasks correctly now