High level library finished, got a double free corruption error, so need to fix that