Added default arguments to some common functions.