UC-138 Do some error checking