Some Error Checking for message length.