Added pause, stop, error handling