Demo external hooks (lifecycle hook).