Adding ability in models to read data as a function or attribute