Wrote terrible publishing script.