reader: Use switch statement in work function