Modified to be able to set env from command line.