Fixed registertimer in global scope.
Added CE support.
Test build 2.