Removed calls to global file manipulation functions, created FileClient object