Added a linebuffer for the background grid