Added a distinguishment between 'foreground' and 'background' objects.