Finalize fromSLV and toSLV functions