First working version of UCL analysis