Type command now handles module and module type