Added devices api.