Wrote "SampleRemodeler" plugin functions.