#19 Added code to address library perm error with libraries 2.2