Sequential version seems to be working now