Reference added
Code reordering