Add pre-start hook