Set q value on load