Delete depricated code