Updated file functionality