Added ability to initialize tsrs from yaml