Add hooks implementation