Added mutation-style methods to functions