Implement group variables as global arrays where possible