Add lots of functions
Add parsing for attrreid
Add learning of attrreid