Major improvement in anti-roll code