Small fixes
integrate function 'EnqueueCmd()' and 'EmptyList()'