Got automation sort of working, minus a number of show-stopper bugs...