Added Try statement and changed an options