Added comments on functions.