Activation implemented

Seems to be working. Haven't tested a specific example.