Adding some data functions in convert.c (UPDATED)