Add to check if num is interger or not.