Moving function to the commonCommand class, fixing installation.