Try to reduce the number of functions using default arguments.