Wrote Queue Struct