How can you increase the number of octaves for the Musgrave Texture in cycles? I'm trying to use a musgrave texture (fBM), but there doesn't seem to be a setting to increase the number of octaves.

Does anyone have a node setup which can add more octaves to the musgrave texture?
Looking at the source code here the musgrave nodes detail value is kept between 0 and 16 and passed as the octave value for the noise function.