Remove use all constants
Algorithm parameters can be set from Python function