Made pointer an optional argument.