Working on porting to new lablqml