Move require code to top of file.