Use float instead of short