Added protected file support