Moved parsing info code to seperate file.