Added bool to show toasts if reqd.