Split up code.