Add result checking to external interface calls