Cleaning up the API for running external tools.