Adds QS form to variables, closes #292