Added buffer head node for simpler code