Remove inverse and trim code.