Added missing 'optional' mark for function params