Format and clean up.