Readded genDirAtt as check for range