Added open index call
added close command