Back-end functionality to generate sequence diagrams.