Add start and stop callback API.