Helper functions for tables and attributes