Added stop_video recognition; added more header comment.