Implementing parser and writer (WIP)