Sorkin served as executive producer for the first episode with director Thomas Schlamme and John Wells . Sorkin served as executive producer for the pilot episode alongside director Thomas Schlamme and John Wells .