Added cleaner log function