Switched to large avs test first and made some proc code generic. Currently gets stuck on a condition somewhere