Add wrapper function for integer checking.