Implemented mastermode 2.