Add run_local method