Organised the code.