Added open study func + revision or memory leackage