Added option to customise name of 'require' function.