First major commit of the code.