Refactored open_*.go