Added feature to run arbitrary commands. Command can be template.