Added hook for callback