Add messages_ready check.

wonder if these threshold values shouldn't be changed to `<NUMBER>` or `<INT>` rather than `<STRING>`?