WLS: added a bunch of stuff which needs to be completed.