Changed code in lib/.