Added comments for functions.