Emmiting the ready event when done