Moved require statements to the top of the file