Added function description

Added more detail to the helper function for further use.