Added callbacks to fix launch order.