New sample file creation code added.