Added more comments about functions.