Removed .close() lines