AC for running the transformer

Yes, that's a better idea altogether.