Better to generalize this to a function, where whatever necessary check is done.