Adding further logic to the run-instances command