Add function attrs avl

Solves #139 and therefor #114 partly.
This function is used internally, so either the function itself or the functionality should be moved to the source file.