Added a head command, and improved the reconnection code