Half way through writing experiment code