Fixed locate & traits because of pointer type problems.