Added "afterCreate" hook.