Use full command on each line (other method was causing problems)