The present invention relates to a method and apparatus for foam forming, wherein fibrous foam suspension is introduced from the head box of a production machine to the web forming section thereof. The methods and circuits preferably provide a charging system that provides current to a load using a fixed current until the load is charged. The virtual machine interfaces with the environment in which it is embedded in a carefully constrained manner, thereby preventing clearly undesirable operations.