Removed duplicate code from FileHandle