Callback hell has made this an unholy mess.