Modified main library file.