Added open and close contracts under co. And added logic accordingly. Plus many other tidbits