Reverted back to double arrays