Replaced strtof with strtod.