Use size instead of length