Remove unused old version of code