Re-added hblank optimization