Simplified version, the program is only responsible for collecting values