Clean and update code.