Substitute values. Resolves #10.