Changed Schema class to MessageSchema.