Only register listeners once