Use arguments instead of environment variables

Prevent environment pollution by using command line arguments.