Minor change in calculate speed