Fixed sla calculation, added some view elements for debugging