Added parse sub-list code