Adding dia for diagrams