Remove redundant code.

By implementing the execution of commands in the initial cycle
via a counter instead of a separate loop.