optimized adding message