Modified from Rosa et al. and Skaar (19, 30).