Added filesystem check