Mweb 983

@nandy-andy @rogatty Guys, this is a script mostly written by Rafał - please code review it and we could test it when it reaches QA column. Adding @aquilax here if he doesn't mind taking a look :) :8ball: :snowman: :bird:
This function looks much like the previous one.