Jail-specific functionality moved from comparison module