Added inv helper from AL