Added on end listener