Updated build hook