Introduced message observe function.