Recording timeout.
Move code around. Cleanup.