Stabilized SDK2.0 code.