Revises smx generation.