Added sample utility function