Refactored. Server doesn't return all stored messages when just adding one.