Removed =undefined for optional parameters

As discussed with @shunter