Added pin state query and response