Added jarvis close option and fixed ioc