Update library to 3.1.3