Final code for release 1.