Tidied up load video function