Print sent state, fix pin bug