Partially copied files from old project.

Doesn't compile, as not all files were handled yet.