Error checking and portability