For to Foreach, added origin to command