To ensure there were enough laughs in each episode, writers, including Mindy Kaling (who played Kelly Kapoor), wrote twice the material needed.