Update script for processing input samples