Changed to double precision. Fixed so memory read speed is correct