Trialling function to deal with embed errors.