Clean parse code