Started implementing parse loop