Moved custom variable settings to top