Added "open" function