Added new functions.

Added pause, restart functions.