Move some require statements to the top of the file for sanity