Added device respond function