Sampled added. Useless code removed.