Rob McElhenney, Charlie Day and Glenn Howerton and their RCG Productions have closed an expansive three-year overall production deal with FX Productions that not only guarantees them two more 10-episode seasons of their cult comedy “It’s Always Sunny in Philadelphia,” but also a series order for a half-hour comedy starring Tracy Morgan (which they are developing with “New Girl’s” Luvh Rakhe), several script deals, and a comedy pilot order.

“Rob McElhenney, Charlie Day and Glenn Howerton are three of the most talented comedy writers and producers in our business, not to mention very gifted actors. This deal is a testament to their skill, intelligence and work ethic, which combined to earn them one of the best overall deals in TV. Not bad for three guys who shot a pilot ten years ago for $200 and a few pizzas.” said Nick Grad, who, along with and Eric Schrier, is president of original programming for FX Networks and FX Productions.

RCG and Rakhe will serve as executive producers and showrunners on the Tracy Morgan project, which has a 10-episode commitment and a scheduled premiere date of January 2015. Eric Tannenbaum, Kim Tannenbaum, and Nick Frenkel are also executive producing. (Note that this is different from the Morgan-starring pilot “Death Pact,” which was known internally as “Do or Die” and was penned by Rob Long and Tad Safran. FX Networks did not move forward with that project).

The script orders include “Harder,” written by “Always Sunny’s” Scott Marder and Howerton, “We’re Good, Thanks,” written by “Always Sunny” actresses Mary Elizabeth Ellis, Artemis Pebdani and Day, with Ellis and Pebdani attached to star, and “Blow Up Dolls,” written by and starring British actress Sarah Solemani (“Mrs Henderson Presents”).

Details on the pilot order will be announced later.