added ability to (un)pause