Use slot to store the headroom instead of flags