Add notifiction on error for debug and add better tag handling.