Issue #4: Background group id can be passed in via URL query parameter named 'bgid'. Foreground group id can be passed in via URL query parameter named 'fgid'.