Added return value to open() method.