Got working with any (in theory) length array