Update bg file