Updated hooks for metadata to be more flexible and added schema for hook data