Added stop functionality.