Moved some requires to the top of the file