Added an ability to not write default listener