Using array instead of references.