Using proper log function