Adapted setup from rsms, plus first few posts