Debugged set-up procedure.