added pause feature.