Fixed mistake: used default parameter =[] in a couple of functions, which is silly.