Implemented tabulation of variables (unformatted but working)