Few fixes. Added predefined sample.