Adding initial version of code.