Completes the activation function in model.php