Implemented new version of scope and tab management.