Added functions for reading attributes