Update conversion code