Pe reactions cleanup

Preferred to have this as input parameter.