Changed debug log function calls