Converting loop_parameters to builder.