Some functions to help with citrain.
More robust citrain-slurp.