Added rudiments of the convert function