Changed allocation size from float* to float