 The ending scene, featuring Scully revealing that she is pregnant, was written the day before it was filmed.Carter held it back because he "didn't want to create something that would let the cat out of the bag and give anybody the opportunity to spoil our fun.