Moved uploading of variables into better positions

The LA wasn’t being updated - not sure why, but after I changed where
the params were being uploaded, it is working. Must have been a typo.