Only ask for environment if it's needed.