Message and packet handling improvements