Changed to unsigned int, and using float as argument type