Added inline documentation.