Added required object hook and install hooks.