Revision B : add opening function