Fixed up some fun with floats and now it works.