Modified isOpen as suggested
Closes #1