added pause capability.