Changed double types to float for better memory usage