Initial version of parsing script