Added support for variable number of random accesses