Fixing bug by making optional argument optional