Add safety to make sure dictionaries only spark on valid transitions