Added assertion into source code.