Added apply function to EnvSimple