Added listener for msgSent