Made the code WebPlayer friendly