Parameterised version of sm etc.