First batch of code.