Testing and cleaning code.