Rename local val to task