Updated command list function