Rename logic to logicApi, made logicApi private