Tunning algorithm parameters.