Implement device query