Updated diagram (jpeg has better export support from dia)