Configurable actions

This fixes issue #52