Allow passing configuration in on run_command