Added gosquared code