Fix flipping to alternate templates, and add success flag.