Use explicit pointer checks and namespace functions by module