Logic v1 working