Initial code for UIWorker. Not working yet