Add play and pause functionality.