Adding init action hook.