Adding didInsertElement hooks.