Switching Libraries and Rewriting From Ground Up