Update code and clean it.