Add play() and pause() functions