Added macro for checknumber/do operation