Small code rewrite to utilize CCLog