Heartbeating. Some improvements to round tripping of data and SQL error handling.