Copied and modified library