Everything works! Time for refactoring.