'pause' function added.