Added comments, function names.