array_size variable used instead of hardcoded loop condition.