Update and cleanup.