Changed Method name to insertCommand