Created basic messages functionality