Moved location of function to match with file layout.