Created array and initial serialization routine.
Needs to be refactored