That's the way it was done in the sample code on the internets.