Added rule list to control shape grammar