Changed logging to float