Fixed message length and some debugging info.