Added FileSystem functions. Errors fixed.