Added wrapper function for bg_window.