Background and foreground working