Changed local log...really NEED to refactor