Adding getFileObject and getContents methods.