diff --git a/bigbluebutton-config/bin/apply-lib.sh b/bigbluebutton-config/bin/apply-lib.sh
index 26765caf91760dac44a08dab3c332cbe080b6817..0c82ca7a7138ee69cde79d65be783caf9733eec4 100644
--- a/bigbluebutton-config/bin/apply-lib.sh
+++ b/bigbluebutton-config/bin/apply-lib.sh
@@ -225,6 +225,19 @@ disableMultipleKurentos() {
   yq w -i $KURENTO_CONFIG balancing-strategy ROUND_ROBIN
 }
 
+setNumberOfHTML5Processes() {
+  HTML5_RESTRICTIONS_FILE=/usr/share/meteor/bundle/bbb-html5.conf
+  NUMBER_OF_PROCESSES=`echo $1 | bc`
+
+  source $HTML5_RESTRICTIONS_FILE
+
+  echo "setNumberOfHTML5Processes with number of processes in the range ($INSTANCE_MIN to $INSTANCE_MAX)"
+  echo "setNumberOfHTML5Processes with NUMBER_OF_PROCESSES=$NUMBER_OF_PROCESSES"
+
+  sed -i -e "s|DESIRED_INSTANCE_COUNT=.*$|DESIRED_INSTANCE_COUNT=$NUMBER_OF_PROCESSES|g" $HTML5_RESTRICTIONS_FILE
+
+  systemctl restart bbb-html5
+}
 
 
 notCalled() {
@@ -254,6 +267,9 @@ source /etc/bigbluebutton/bbb-conf/apply-lib.sh
 
 #enableMultipleKurentos
 
+#setNumberOfHTML5Processes 2
+
+
 HERE
 chmod +x /etc/bigbluebutton/bbb-conf/apply-config.sh
 ## Stop Copying HERE