Implemented C0 logic (but didn't test it yet)