Added beginning of parse-function for gui.