Add error checks to research