When there is no command:
And, how do you define this?
If you can’t be bothered to post your code correctly, I can’t be bothered to read it.
If you wrote the code in the first place, YOU should be able to combine them. If you don’t understand the code, get busy learning what it does.