make it work using Channels instead of Chan, and using float precision, otherwise exporting to csv fails