Added the rest of wrapper function for run kernel