Write on Buffer function removed.
Script to test client.
Defining a pattern for messages