modified data processing, added overlays and listeners.