Add comments on functions