Callback hell cleanup.