Added parent access to wrap hook