Added comment on log function