This looks like a duplicate of the utility function above. Am I missing something?