Added "upsample" method.