Moved require statements to prevent missing library errors on linux machines.