Add function to list variables