Add trace option to gear script for nicer error messages