Added const qualifier to a couple of local pointers to get rid of compile warnings...