Adding some error checking back to the trans pass.