Removed hardcoded array size