Now it works, but samples are getting cut off.