Added hook that checks if redbean freeze is needed