Updated play sound to take time delay as argument