Added main() and start developing listener.