Added options to show errors or not