Added open functionality