Edit libs function