Its a shame you can't make this return an int.