Moved require statements to top of file.