Moved everything into the callback