Background logic fixed