Added endFlipListener