Added the ability to clear messages on client side