Added exception in lib