Implemented observer pattern in Options class.