Added data conversion method