Double buffering
Fixed constraints in double buffering