Remove duplicate downsample_ratio declaration.
Clean up attributes to use is_attribute to avoid duplication.
Clean up attributes to use is_attribute to avoid duplication.
Add data types for attributes