Removed array size code as confusing.