Refactored dlisteners. Added capture support.