Fixed bug with array index
Added empty file creation for VLC mode