Function setConfiguration