Manual debugging and refactoring work.