Setting up framework for scanning input program