Removed depe on global log funciton