Time limits for pleading are regulated to a large extent by specific statute or rule in each jurisdiction. Generally, time extensions for serving or filing a pleading may be allowed by the court or provided for by stipulation of the parties. A large discretion is vested in the trial court with respect to time extensions on such terms as appear reasonable under the circumstances. If a defendant's motion is overruled, generally the defendant is entitled to file an answer even though the statutory period for answering has expired.