Code for preliminary experiments