Updates to lib