Move a function higher up, and add a test