Add UA functions

Since cba0013 broke some functionalities (and plugins), I suggest to reintroduce it (partially).