Slightly cleaner variable space expansion code.