Rewrote library