UAC rewrite.

Signed-off-by: Horváth Balázs <q@qroa.ch>