Array-based method.