Use environment variables instead of command line arguments.

Remove killed code.