Prepared solution for full array implementation.