Improve GetRules buffer