Moved some constants and logging apis.