Migrated delegates code from LinFu 1.0