Finished debugging. Closes #10.