Clening up Framebuffer code.