First commit. Output is very raw but it works.