Added macro method of automation.