Added type check to geo