SOFIE: state-based studio automation system