Change type to action_type