Added openFile method to plugin