Function for debugging.