Basic parsing is working, needs to be cleans and packaged into functions