Changes syntax for default arguments to prevent deprecation warnings