Adding our managed file helper functions