Extract activation maps

You could use hooks as shown in this example.