Added error if consumer_callback is not defined.