Added check for integer