Generalise properly using environment variables.