Added resend message functionality.