Add pre resume hook