Updated function comments