Refinements to behaviour of fastload and search, bug fixes for duplicate
main.