Continues writing the video command and refactors hook a bit.