Added action hooks (#114)