Improve support for float values, and add some logging