Added basic code wihth pause/play functionality