Renamed parameter to targetSize for consistency.