Use isFirstMessage instead of counting messages