The role of second coordination-sphere interactions in incommensurately modulated structures, using beta-K5Yb(MoO4)4 as an example.