Resetting history read position when calling history_add with a duplicate of the latest entry.
Adding code to clean up zombies.
Adding history completion (search).