Added parts of the MSS source code