Rename readQueue to messageQueue and writeQueue to messageNotifier.