Webmethods

* Reconstruction of mainloop