Added the require function to wait for variables to be defined