Separated callbacks into variables. A little less gross.