Refactored open() into one method