Added recursive conversion function to renderer