Working with the support to array
Array record is working, But NEED to REFACTOR
Added array record support