L.generate preprocesses samples. Fixes #35