Teach loop how to accept multiple cmds

Signed-off-by: Raul Gutierrez S <rgs@itevenworks.net>