Add logs for debugging. Will be removed later.