Conditional listener loading