Added initial revision of code.