I'd suggest calling this variable 'enabled' or 'listen', just to be a little more clear what it is. Aside from that, looks like a good fix!