Made it possible to use floats