Removed unneeded open statements