Add header and 'send message' code