Fixed waste-of-time PatternID system, using itemstacks now.