Started work on the utility function