Some experimental code. Need to be cleaned up later.