Fixes #3063 Migrated hooks and scripts