Replaced deprecated library with new one