Added variable to handle background color synchronization