Updated some filesystem functions