Added method for File IO