Define map definition in the hook function to add to stump