Some new pieces of code