Add function to convert targets.