University of Waterloo study suggests one type of warning can be effective