Copy of sampy 1.2.1.