Creating hooks and modules