Figured out how setsamples should work