Make plotUdf module more readable