Fixed some rough edges and added togglePause().