nested the loops inside Loop
VariableConfiguration is now defined in Configuration
removed Configuration.flush()