A little logging for now - should be moved in to a debug command-line option