Started utility functions code.