The update function that is called internally by the CommandHandler. It calls the customizable function onUpdate.