Various pieces of code.