Adding functions to convert.c (conversion itself)