Fixed set hash reference mistake and added pause/unpause capability.