Use struct library for converting data