Added try-catch
Added toasts