Updated hibernating script.