Refactored functions to store argument names (as integer references)