Adding error checking to pro.