Interesting: named parameters in functions correspont to the 'name' string in the declarations of T.<variable_type>.  This should get rid of the 'momentum' not being found error.