Use a function for creating a single fileDescriptor to save lines
getuiparameters simplyfied