Common code for VSM applications.