Revert deletion of addFromArray method
Rename addFromArray to addArray