Added support for pausing and seeking.