How episodes are produced