Added to the playing function