Change int return types to double.