Make the new PrimaryLoop() function static.