Code test and clean up.