Fixed background function.