Made imports clean-up in sample.
Added logger to sample and sample_delete.