Added support for global background/foreground objects.