Add completion handler to track handler.

- Dispatches on main queue
- Using dispatch groups to determine when to finish writing