Param interpolation

I've fixed some bugs. Explanations are in the commit logs.