Updating code files for listing hooks