Fixed #2.
Categories are now read from the existing entries.