Ported ArrayHandler methods from previous lib.