Updated function name for trigger