Throw out most of ivycp.

Found a better way.