Convert print statement to warning