Added stringify and parse when sending and receiving messages.