User code for qtlab, master