Added methods for SL and TP cancellation.
Refactorings on SL and TP calculation for cleaner implemenation.