Changed ArrayList to List