Preprocessing program for aces4.