Added missing getAttributes method