Allow config options to be passed to before_callback