Modifications to support foreground & background color changes.