Initial commit of code from prototyping work.