Simplified version of script -- Using new algorithm