Add hooks functionality and workers