More refactorin of calc direction params method.