Added a bit of framework for reactions.