Cleanup, timing, and portability