Finially got everything working! There was a bug in the host to device index copy. Need to be cleaned up now