Updated script for 2013 web changes