Start of doublebuffer support