Update comment function