- Implemented observer pattern.