Method parameter controls clear

Method parameter controls clear now if the user selects an algorithm
type