Version 2

    Template assumes that you use user which has its prompt set to nms# and you can of course change it. Just make sure to adjust VirtualPrompt commnad in template.