Refactored function: ParameterLearning.