Is this function used outside of this file? If no then put it with the other privates at the top of the file.