Updated File Functions