Added better checking when getting interface values.