Reduced the complexity of tontoDirective to satisfy the complexity test