Changed log to static method