CSP almost implemented