Implements hooks module.