Some experiments and testing code