Only set the insert time after the insert has finished. Fixes #30.