Initial version of code.