Implemented background scanning with foreground update of visible entities.