Changed Samples from double to float