Comments updated for functions