Add required variables to rule class