Included a new utility function