Reduce the number of variables