Added functionality for wkst and bysetpos