Some functions that were useful for zebra.