File sensing now working