Implemented a pause feature that currently works.