Added api hooks and triggers.