Process multiple commands per loop