Create struct of variables for kernel passing