Code for PropagationModel