First working version. Improvements to be continued with use and need