These functions should be further down the file, and have preceding comments to describe their functionality.