First commit. Working code.