Modified require to execute after plugins_loaded