Transfered back the settings initialization to BeginExecute