Updated comments for functions