Improved variables for iron router middleware