Adding missing logging function