Supporting new open() function