Tracing on projections
Fixed warnings and changed code style