Formatting variable groups and variables