Adding hook parameter to execute custom scripts.