Added GetAttributes method