Implement setup hook.