Update Cask file and removed some dead code